<template>
	<view class="p20">
		<view class="bg-fff mb20 p20 radius20">
			<view class="fs28 fw-700 bottom pb6 dib">陪诊师风采</view>
			<imgList @success="ids=>style=ids" :ids="$user.style" :paths="$user.style_img" width="670" height="448"
				size="300" max="9" hideBor></imgList>
		</view>
		<view class="h120"></view>
		<view class="fixed bottom0 left0 w-max bg-fff flex ">
			<view class="flex1 p20">
				<u-button type="warning" ripple @click="submit">保存</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				style: ''
			};
		},
		onLoad() {
			this.style = this.$user.style || ''
		},
		methods: {
			submit(e) {
				this.$request('/master/my/editInfo', {
					style: this.style
				}).then(res => {
					this.$msg(res.msg)
					this.$navBack(1, 1000)
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
